const { defineConfig } = require('@vue/cli-service')
const path = require('path');
module.exports = defineConfig({
  // 生产环境不生成 source map
  productionSourceMap: false,
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/map': {
        target: 'http://10.16.2.62:8901', // 目标 API 服务器
        changeOrigin: true,
        pathRewrite: { '^/map': '' } // 可选: 重写路径
      }
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        '@': path.resolve(__dirname, 'src')
      }
    }
  }
})